import {asyncAny,fetchPath} from 'tsservice/commonService';

namespace _CommonLogin{
  type Params = {source?:string,userName?:string,pwd?:string};
  type Result = {result:{data?:boolean}};
  export function req(params:Params){
    return asyncAny<Result>(fetchPath('/common/login',params), 'POST', { params });
  }
};
export const CommonLogin = _CommonLogin.req;

namespace _CommonLogout{
  type Params = {};
  type Result = {result:{data?:boolean}};
  export function req(params:Params){
    return asyncAny<Result>(fetchPath('/common/logout',params), 'GET', { params });
  }
};
export const CommonLogout = _CommonLogout.req;
